package vip.ipav.spring.cloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * 熔断微服务
 *
 * @author laoyuan.me
 *
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrix
public class HystrixMicroServiceServer {
    public static void main(String[] args) {
        new SpringApplicationBuilder(HystrixMicroServiceServer.class).web(true).run(args);
    }

}
